package cn.tedu.springbootmybatis.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: jiawp
 * @date: 2023/8/16 14:32
 * @description:
 **/
@RestController
public class FileUploadController {

    @PostMapping("/upload")
    public void upload(@RequestBody  MultipartFile file){
        String originalFilename = file.getOriginalFilename();
        System.out.println(originalFilename);
    }
}
